package com.ttl.sbgl.loginback.repository;

import com.ttl.sbgl.loginback.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

//用户jpa接口
@Repository
public interface UserRepository extends JpaRepository<User,String> {

    User findByName(String name);
    User findByNameAndPassword(String name,String password);
}
